﻿SSVC.Wrap.Dojo.Declare("ActiveEllipseElement", SSVC.SVG.ActiveElement,
{
	//#region overrided methods
	_addInnerElement: function()
	{
		this.InnerElement = new SSVC.SVG.Ellipse();
	},

	restoreCoo: function(xmlNode)
	{
		this.X = +xmlNode.getAttribute(this.InnerElement.axis.x) - +xmlNode.getAttribute(this.InnerElement.axis.ox);
		this.Y = +xmlNode.getAttribute(this.InnerElement.axis.y) - +xmlNode.getAttribute(this.InnerElement.axis.oy);
		this.OX = +xmlNode.getAttribute(this.InnerElement.axis.ox) * 2;
		this.OY = +xmlNode.getAttribute(this.InnerElement.axis.oy) * 2;
	}
	//#endregion
});

SSVC.Wrap.Dojo.SetObject("SSVC.SVG.ActiveEllipseElement", ActiveEllipseElement);
